﻿@model Diploma.Web.Areas.Account.Models.PostModel
<script src="~/Scripts/jquery-1.7.1.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
<link href="~/Areas/Account/Styles/Post/uploadfile.css" rel="stylesheet" />
<script src="~/Areas/Account/Scripts/Post/jquery.min.js"></script>
<script src="~/Areas/Account/Scripts/Post/jquery.uploadfile.min.js"></script>

<script>
    var postUrl = '@Url.Action("FileUpload", "File", new { area = "Account" })';
</script>


<div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(x => x.ImagesJson, new { @Id = "HiddenImagesJson" })
        <legend>PostModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PostBody)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.PostBody, 15, 50, new { })
            @Html.ValidationMessageFor(model => model.PostBody)
        </div>

        <p>
            <input class ="btn" type="submit" value="Create" />
        </p>
    }

    <div id="mulitplefileuploader">Upload</div>
    <div id="status"></div>
    <script src="~/Areas/Account/Scripts/Post/Uploader.js"></script>
</div>
